import React, { Component } from "react";
import { HashRouter as Router, Route, Switch } from "react-router-dom";
// import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import { createBrowserHistory } from "history";
import App from "../containers/home/App";
import AwardDetail from "../containers/awarddetail";

const customHistory = createBrowserHistory();

class AppRouter extends Component {
  render() {
    return (
      <Router history={customHistory}>
        <Route exact path="/" component={App} />
        <Route path="/list" component={App} />
        <Route path="/detail/:id" component={AwardDetail} />
      </Router>
    );
  }
}

export default AppRouter;
